import { createApp, reactive, provide } from "vue";
import "./style.css";
import App from "./App.vue";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import router from "./router";

const globalState = reactive({
  username: localStorage.getItem("username") || "",
});
const app = createApp(App);
app.provide('globalState', globalState);

app.use(ElementPlus);
app.use(router);
app.mount("#app");
